package com.example.minisqlite;

import java.io.Serializable;

public class IndexDefinition implements Serializable {

    private final int indexId;
    private final String name;
    private final int tableId;
    private final String columnName;
    private final int columnIndex;

    public IndexDefinition(int indexId, String name, int tableId, String columnName, int columnIndex) {
        this.indexId = indexId;
        this.name = name;
        this.tableId = tableId;
        this.columnName = columnName;
        this.columnIndex = columnIndex;
    }

    public int getIndexId() {
        return indexId;
    }

    public String getName() {
        return name;
    }

    public int getTableId() {
        return tableId;
    }

    public String getColumnName() {
        return columnName;
    }

    public int getColumnIndex() {
        return columnIndex;
    }
}
